<legend><<$lng.hungarianabroad>></legend>
<p>
<label><<$lng.productname>></label><Br><<hsinput value="`$company.productname`" id="productname" name="productname">>
<label><<$lng.producths4>></label><br>
<input readonly="readonly" value="<<$company.hs4>>" hscode="<<$company.hs4>>" name="hs4" id="code_hs4" class="hsdropdown">
<br>
<<inputtextarea value="`$company.activity`" title="<<$lng.activity>>" name="activity" cols=80 rows=10 class="width500">>
</p>
<p>
<b><<$lng.ha_bannersponsor>></b><Br>
<table>
<<if ($sponsor.spn_ha_rotator.status == "ordered")>>
<tr><td><<$lng.ha_bannerad>></td><td class="sponsor_ordered">ORDERED</td></tr>
<<else if ($sponsor.spn_ha_rotator.status == "payed")>>
<tr><td><<$lng.ha_bannerad>></td><td class="sponsor_payed">PAYED</td></tr>
<<else>>
<tr><td><input onclick="checkboxClicked(this, 30000);" class="checkbox row_allower sponsor" type="checkbox" name="banner_ad"></td><Td><<$lng.ha_bannerad>></td><td>for <input type="text" name="banner_ad_month" class="month multiplier" prev="<<$banner_ad_months>>" value="<<$banner_ad_months>>" base="30000"> <<$lng.month>></td><td><span ref="banner_ad_month" class="sum"></span> HUF</td><td></td></tr>
<</if>>

<table>
<<if ($sponsor.spn_ha_countrysearch.status == "ordered")>>
<tr><td><<$lng.ha_sponsorcountry>></td><td class="sponsor_ordered">ORDERED</td></tr>
<<else if ($sponsor.spn_ha_countrysearch.status == "payed")>>
<tr><td><<$lng.ha_sponsorcountry>></td><td class="sponsor_payed">PAYED</td></tr>
<<else>>
<tr><td><input onclick="checkboxClicked(this, 20000);" class="checkbox row_allower sponsor" type="checkbox" name="topic_sponsor"></td><Td><<$lng.ha_sponsorcountry>></td><td>for <input type="text" name="country_sponsor_month" class="month multiplier" value="<<$country_sponsor_months>>" prev="<<$country_sponsor_months>>"  base="20000"> <<$lng.month>></td><td><span ref="country_sponsor_month" class="sum"></span> HUF</td><td><<fileuploader req_width=732 req_height=120 uploadfn="uploadSponsorLogo" title="<<$lng.addbanner>>" name="topicsponsor_id">></td></tr>
<</if>>
</table>
</p><p>
<<fileuploader req_minwidth=710 req_minheight=90 chgtitle="<<$lng.changebanner>>" req_width=732 req_height=120 value="<<$companyprofile.rotator_id>>" uploadfn="uploadSponsorLogo" title="<<$lng.addbanner>>" name="banner_id">>
</p><p>
<table>
<tr><td><input class="checkbox" type="checkbox" name="accept_tac"></td><td><<$lng.yestou>></td></tr>
<tr><td colspan="2"><<$lng.sendorder>></td></tr>
</table>
<p>
<<$lng.longterm>>
</p>
<table>
<tr><td>
<<$lng.total>>:
</td><td width="150px;">
<div style="background-color:#DEDEDE;width:auto;"><div style="display:inline;" id="amount"></div> HUF</div>
</td><td>
<div style="display:inline;" id="amount_eur"></div> EUR
</td><td>
<div style="display:inline;" id="amount_usd"></div> USD
</td><td>
<div style="padding-left:1cm;"><<$lng.totaldesc>></div>
</td><td>
<input type="text" name="discount" class="extra discount" style="width:130px;position:relative;top:8px;" onchange="recalculateAmount()">
</td></tr>
</table>

</p>

<input type="hidden" name="sponsoration_changed" value="0">
    <<jqbutton type="submit" title="<<$lng.savehabroad>>" style="width:180px;" onclick="submitService('profile', 'Saving hungarian abroad profile, please wait...', this); return false;">>

<script>

function submitService(formName, waitMsg, buttonItem) {
    if (sponsorationChanged) { jQuery("input[name='sponsoration_changed']").val(1); } else { jQuery("input[name='sponsoration_changed']").val(0); }
    multiform_saveCurrentTab(jQuery("form[name='profile']"), 1, waitMsg, buttonItem);
}

jQuery("input.multiplier").multiplier({});

jQuery("input[type='checkbox'].row_allower").allower({
    type : "row"
});


jQuery(".hsinput").hsInput({
    page : "companyprofile",
    hs2service : "geths2",
    hs4service : "geths4fromhs2",
    freetextservice : "gethsdata",
    defaulttext : "enter a product",
    selected : function(hsinputitem, value, code) {
        var id = jQuery(hsinputitem).attr("id");
        jQuery("#code_hs4").val(code);
        return false;
    },
    change : function() {
    }
//    enterHandler : handleEnterKey
});
</script>
